import prettier from 'stylelint-prettier';
import stylelintOrder from 'stylelint-order';
import { getStyleLintConfig } from '@hdtd/coding-style';
import postcssLess from 'postcss-less';
export default {
  root: true,
  extends: [getStyleLintConfig({ order: stylelintOrder })],
  plugins: [prettier],
  overrides: [
    {
      files: ['**/*.less'],
      customSyntax: postcssLess // 使用 PostCSS-Less 解析器
    }
  ],
  ignoreFiles: ['**/*.{js,jsx,ts,tsx}'],
  rules: {
    'prettier/prettier': [true]
  }
};
